<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>教育资源-编辑资料</title>
	<link rel="stylesheet" href="css/common.css">
	<link rel="stylesheet" href="css/LeftsideBar.css">
	<link rel="stylesheet" href="css/accountSafe.css">
	<link rel="stylesheet" href="resource/resFilesCss/public.css">
</head>
<body>
	<div id="header"></div>
	<div class="mainBg">
		<div class="mainBgMid clearfix">
			<div class="leftNav">
			</div>
			<div class="rightContent">
				<p class="titP">账号信息</p>
				<div class="bind_status clearfix mgt20">
					<dl class="mgr10">
						<dt class="f16 c222">
							绑定邮箱
							<i class="s2">未设置</i>
						</dt>
						<dd>
							<p class="s_info">
								绑定邮箱后，邮箱号不仅可以作为账号登录，还可以找回登录密码。
							</p>
							<p class="mgt30">
								<input value="绑定" class="u_white_btn" type="button" id="email_bind" onclick="window.location.href='accoutSafeBindEmail.html'">
							</p>
							<i class="s_bg"></i>
						</dd>
					</dl>
					<dl class="mgr10">
						<dt class="f16 c222">
							绑定手机
							<i class="s1">未设置</i>
						</dt>
						<dd>
							<p class="s_info">
								绑定手机后，手机号不仅可以作为账号登录，还可以找回登录密码。
							</p>
							<p class="mgt30">
								<input value="查看" class="u_white_btn" type="button" id="email_bind" 
								onclick="window.location.href='queryAccount.html'"
								>
							</p>
							<i class="s_bg"></i>
						</dd>
					</dl>
				</div>
				<a href="" class="btnSave">保存</a>
			</div>
		</div>
	</div>
	<div class="footerBot"></div>
	<script src="./js/jquery.js"></script>
	<script src="./js/fxtpl.plus.js"></script>
	<script>
		// save Btn click 
		$(".btnSave").on("click",function(){
			var inputNow = $(".passWordLine").find("input");
			var redTip = $(".redTip");
			inputNow.each(function(){
				$(this).removeClass("redBorder");
			});
			redTip.each(function(){
				$(this).css("display","none");
			});
			if(inputNow.eq(0).val()==""){
				inputNow.eq(0).addClass("redBorder");
				inputNow.eq(0).siblings(".redTip").css("display","inline-block");
			}else if(inputNow.eq(1).val()==""){
				inputNow.eq(1).addClass("redBorder");
				inputNow.eq(1).siblings(".redTip").css("display","inline-block");
			}else if(inputNow.eq(2).val()==""){
				inputNow.eq(2).addClass("redBorder");
				inputNow.eq(2).siblings(".redTip").css("display","inline-block");
			}else{
				window.location.href = "tesachSpace.html";
			}
			return false;
		})

		 var dataClass = {"dataClass":7};
		 var header = Fxtpl.render('./weight/header.html',dataClass);
		 $('#header').html(header);
		 var sildeBar = { rankNum:4};
		 var leftNavBar = Fxtpl.render('./weight/LeftsideBar.html',sildeBar);
		 $(".leftNav").html(leftNavBar);
		 
	</script>
</body>
</html>